#ifndef UDGRAPH_H_
#define UDGRAPH_H_
#include<iostream>
#include"Graph.h"
using namespace std;
class UDGraph: public Graph {
	friend ostream &operator<<(ostream &output, UDGraph &UDG);
	friend istream &operator>>(istream &input, UDGraph &UDG);
public:

	UDGraph(int vexnum = 0,int arcnum = 0);
	~UDGraph();

	Status BFTraverse();
	Status DFTraverse();

	Status setPtrtoMatrix(bool*);
	bool *getMatrix();

private:
	bool *m_pMatrix;
};


#endif